{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=252
  Verdict: Accepted
}
uses SysUtils, Math;
 
var
	a:double;
	b:longint;
 
function pow(a:double; b:int64):double;
var 
	pw:double;
begin
if b=0 then result:=1 else begin
  pw:=a;
  result:=1;
  while b>0 do begin
    if b mod 2=1 then result:=result*pw;
    pw:=pw*pw;
    b:=b div 2;
  end;
end;
end;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(a,b);
if b<0 then write((1/pow(a,abs(b))):0:15) else write(pow(a,b):0:15);
end.